#ifndef SIMDATA_UDPSEVER_H
#define SIMDATA_UDPSEVER_H

#include <QObject>
#include <QThread>
#include <QHostAddress>
#include <QUdpSocket>
#include <QByteArray>
#include <QTimer>

class SimData_UdpSever : public QThread
{
    Q_OBJECT
public:
    SimData_UdpSever(QString terminal, QHostAddress address, int port, int hz);
    void run();
    QString terminal();
private:
    QString m_Terminal;
    QHostAddress m_Address;
    int m_Port;
    int m_Hz;

    int temp;

    QTimer *m_Timer;
    QUdpSocket qus;

private slots:
    void update();
};

#endif // SIMDATA_UDPSEVER_H
